package com.beauty.dressing.module.market.presenter.contract;

import com.beauty.dressing.common.bean.LeaseItemDetail;
import com.beauty.dressing.common.bean.SaleItemDetail;
import com.beauty.dressing.common.bean.SalesOrderResp;

/**
 * Created by aaa on 2018/5/18.
 */

public interface SaleDetailContract {
    /**
     * 界面回调逻辑
     */
    interface ViewControl{
        void onSaleDetail(boolean isSuccess, int code, String message, SaleItemDetail data); //
        void onSaleAddCart(boolean isSuccess, int code, String message, Object data); //
        void onCreateSaleOrder(boolean isSuccess, int code, String message, SalesOrderResp data); //
    }

    /**
     * 界面调用请求的逻辑
     */
    interface Presenter {
        void getSalesDetail(long sales_id);
        void salesAddCart(long sales_id,int number);
        void createSalesOrder(long leaseId);
    }
}
